//系统路由
const routes = [
  {
    path: "/login",
    component: () => import('@renderer/views/login/index.vue'),
    meta: {
      title: "登录"
    }
  },
  {
    name: "layout",
    path: "/main",
    component: () => import('@renderer/layout/index.vue'),
    redirect: "/member",
    children: [
      {
        path: "/member",
        component: () => import('@renderer/views/member/index.vue'),
        meta: {
          title: "会员管理"
        }
      },
      {
        path: "/stock",
        component: () => import('@renderer/views/stock/index.vue'),
        meta: {
          title: "库存管理"
        }
      },
      {
        path: "/consume",
        component: () => import('@renderer/views/consume/index.vue'),
        meta: {
          title: "会员消费"
        }
      },
      {
        path: "/consume/normal",
        component: () => import('@renderer/views/consume/normal.vue'),
        meta: {
          title: "普通消费"
        }
      },
      {
        path: "/setting",
        component: () => import('@renderer/views/setting/index.vue'),
        meta: {
          title: "系统管理"
        }
      }
    ]
  }
]

export default routes;
